feat(vefaas): enhance deployment workflow and add comprehensive tests#372
Merged
ZhengfengGao merged 1 commit intovolcengine:mainfrom Jan 12, 2026
Merged
feat(vefaas): enhance deployment workflow and add comprehensive tests#372ZhengfengGao merged 1 commit intovolcengine:mainfrom
ZhengfengGao merged 1 commit intovolcengine:mainfrom
Conversation
9e1c328 to
6d01cc8
Compare
## Summary This update improves the Python deployment process, adds comprehensive E2E and unit tests, and refines tool behavior based on real-world usage. ## Deployment Enhancements ### Python Dependency Installation - Handle 'Dequeued' status correctly as an intermediate state - Explicitly trigger CreateDependencyInstallTask before polling - Increase timeout to 300 seconds for dependency installation - Refactor release_function to reuse SDK wait_for_dependency_install logic ### Script Permissions - Preserve original file permissions when packaging - Proactively grant 755 to script files (.sh, .bash, .py, .pl, .rb) - Fixes 'Permission denied' errors for run.sh ### Configuration Management - Add vefaas.yaml to DEFAULT_VEFAASIGNORE - Save config in update_function when project_path is provided - Fix NAME_CONFLICT error messages to require user decision ## Tool Behavior Improvements ### update_function - Refined next_step message to not auto-trigger release_function - Gives user control over when to publish changes ### release_function - Enhanced to correctly handle Dequeued status - Reuses SDK dependency waiting logic for consistency ## Code Quality ### Cleanup - Removed all debugging logger.debug statements - Translated Chinese comments to English - Fixed deprecated pathspec 'gitwildmatch' -> 'gitignore' ## Tests ### E2E Tests (tests/test_e2e.py) - Application Workflow (Python/Node.js): Deploy + Update + Redeploy - Function Local Dev (Python/Node.js): Deploy + Update Code + Release ### Unit Tests (tests/test_unit.py) - 18 tests - Package directory and ignore patterns - Caddyfile generation - Project detection (FastAPI, Flask, Vite) - Configuration read/write - App name generation
ZhengfengGao
approved these changes
Jan 12, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This update improves the Python deployment process, adds comprehensive E2E and unit tests, and refines tool behavior based on real-world usage.
Deployment Enhancements
Python Dependency Installation
Script Permissions
Configuration Management
Tool Behavior Improvements
update_function
release_function
Code Quality
Cleanup
Tests
E2E Tests (tests/test_e2e.py)
Unit Tests (tests/test_unit.py) - 18 tests
Test Results
All 4 E2E tests and 18 unit tests passed: